<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %> 
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	
  	<center><div align="center"><div>
  	<a href="/jft_curd3/user/form">新增</a></div><br/>
	<table style="width=500px;border='1px solid black'" >
    <tr>
    <th>ID</th>
    <th>姓名</th>
    <th>年龄</th>
    <th>性别</th>
    <th>备注</th>
    <th>操作</th>
  </tr>
  <c:forEach items="${ur}" var="u">
  <tr>
    <td><center><c:out value="${u.id}"></c:out></center></td>
    <td><center><c:out value="${u.name}"></c:out> <center></td>
    <td><center>${u.age}<center> </td>
    <td><center>${u.sex} <center></td>
    <td><center>${u.remark} <center></td>
    <td><div><center>
    <!--  
    <input type="button" onclick="window.location.href('/jft_curd3/user/edit/${u.id}')" value="修改">
    <input type="button" onclick="window.location.href('/jft_curd3/user/del/${u.id}')" value="删除">
    -->
    <a href="/jft_curd3/user/edit/${u.id}">修改</a>
    <a href="/jft_curd3/user/del/${u.id}">删除</a>
    </center></div></td>
  </tr></c:forEach>
</table></div><a href="/jft_curd3/user/index">刷新</a></center>

  </body>
</html>
